package org.wmq.shopmanager.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.wmq.commonutil.result.Result;
import org.wmq.shopmodel.DTO.system.LoginDTO;
import org.wmq.shopmodel.DTO.system.SystemUserQueryDTO;
import org.wmq.shopmodel.Entity.system.SystemUser;
import org.wmq.shopmodel.VO.system.LoginVO;

public interface SystemUserService extends IService<SystemUser> {
    Result<LoginVO> login(LoginDTO loginDTO);

    SystemUser getSystemUserInfo();

    void logout(String token);

    IPage<SystemUser> getPageItem(SystemUserQueryDTO systemUserQueryDTO);

    Result<Void> saveSystemUser(SystemUser systemUser);

    Result<Void> updateSystemUserById(SystemUser systemUser);
}
